import type { App } from "vue";
import { setupStore } from "./stores";
import { setupRouter } from "./router";
import { setupI18n } from "./plugins/vue-i18n";
import { setupGlobalDirective } from "./directives";

// app 启动方法
export const setupApp = (app: App<Element>) => {
  setupStore(app);
  setupRouter(app);
  setupGlobalDirective(app);
  setupI18n(app);
  app.mount("#app");
};
